package com.suray.wcs.service.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.suray.wcs.service.system.entity.RgvMapDB;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author cooper
 * @since 2019-06-26
 */
public interface IRgvMapDBService extends IService<RgvMapDB> {
    /**
     * 根据warehouseId删除地图
     * @param warehouseId
     */
    void deleteByWarehouseId(int warehouseId);

    /**
     * 删除对应层的地图
     * @param warehouseId
     * @param layer
     */
    void deleteByLayer(int warehouseId, int layer);

    /**
     * 更新地图层信息
     * @param warehouseId
     * @param map
     * @param layer
     */
    void updateMapLayer(int warehouseId, String map, int layer);

    /**
     * 更新地图名字信息
     * @param warehouseId
     * @param map
     * @param layer
     */
    void updateMapName(int warehouseId, String map, int layer);

    List<RgvMapDB> selectMapList(RgvMapDB rgvMapDB);

    boolean insertWcsDist(RgvMapDB rgvMapDB);

    int updateMap(RgvMapDB rgvMapDB);
}
